<extend name="public/base"/>

<block name="content">
      <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Daike/index')}">代课登记</a></li>
        <li><a href="{:U('Daike/search')}">代课统计</a></li>
        <li><a href="{:U('Daike/show')}">代课情况</a></li>
      </ul>
	<!-- 标题栏 -->	  
    <h4 class="center">最近安排的代课</h4>  
  
    <!-- 数据列表 -->
        <div class="data-table table-striped">
         <table class="table table-bordered">
             <thead>
            <tr class="info ">
                
                <th>序号</th>
                <th>代课日期</th>
                <th>班级</th>
                <th>节次</th>
                <th>代课教师</th>                              
                <th>代课事由</th>
                <th>代课类别</th>  
                <th>登记日期</th>                
                <th>操  作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                <tr>                    
                    <td>{$i} </td>                    
                    <td>{$vo.d_date}</td>
                    <td>{$vo.class}</td>
                    <td>{$vo.d_jieci}</td>
                    <td>{$vo.teacher}</td>                    
                    <td>{$vo.shiyou|msubstr=0,20,'utf-8',true}</td>
                    <td>{$vo.category}</td>
                    <td>{$vo.update_time|date='Y-m-d',###}</span></td>                      
                    <td>
                        <a href="{:U('edit','id='.$vo['id'])}" >编辑</a> |                        
                        <a href="{:U('delete?id='.$vo['id'])}" class="authorize">删除</a>                      
                        </td>
                </tr>
                </volist>
                <else/>
                <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
            </table>
        </div>		
           <h3>代课登记 </h3>  
      <div class="form-inline">
        <form method='post' id="form" name="form"  action="" >
           <div class="col-md-4 form-group">
           <label class="control" for="class">班 级：</label>
            <select name="class" id="class" class="form-control">
            <volist name="classlist" id="vo">
                <option value="{$vo.class}">{$vo.class}-{$vo.headteacher}</option>
                </volist>               
            </select></div>
            <div class="col-md-4 form-group">
              <label class="control" for="week">代课教师：</label>           
                <input type="text" class="text input-large" name="teacher" value="">
             </div>
             <div class="col-md-4 form-group">
           <label class="control" for="category">代课性质：</label>
            <select name="category" id="category" class="form-control">               
                <option >看班</option>
                <option >代课</option>
                <option >跨头代课</option>                             
            </select>
            </div>
      
           <div class="col-md-4 form-group">
           <label class="control" for="subject">日 期：</label>
           <input type="text" style="width:25%" class="form-control" name="month" value="{:date('n月')}">
            <select name="day" id="day" class="form-control">
                <for start="1" end="31">
                <option >{$i}日</option>
                </for>                 
            </select>
            </div>
           <div class="col-md-4 form-group">
           <label class="control" for="week">节次：</label>
            <select name="week" id="week" class="form-control">              
                  <option>周一</option>
                  <option>周二</option>
                  <option>周三</option>
                  <option>周四</option>
                  <option>周五</option>
                  <option>周六</option>
                  <option>周日</option>                       
            </select>
           <select name="d_jieci" id="d_jieci" class="form-control">
                <for start="1" end="7">
                  <option>第{$i}节</option>
                </for>          
            </select>
             </div>
           <div class="col-md-4 form-group">
           <label class="control" for="week">代课节数</label>
           <select name="number" id="number" class="form-control">
                <for start="1" end="7">
                  <option value="{$i}">{$i}节</option>
                </for>          
            </select>
             </div>


         <div class="col-md-10 form-group">
            <label class="control">代课事由<span class="check-tips">（请将作业内容复制到下面框内,然后点击下面的上传作业按钮。）</span></label>
            <div class="controls">
               <textarea name="shiyou" class="text input-large"></textarea>
              {:hook('adminArticleEdit', array('name'=>'shiyou','value'=>$data['shiyou']))}
            </div>
            </div>

      <div class="col-md-12 form-actions"> 
        <button type="submit" class="btn btn-primary">提交</button>
        <button type="button" class="btn btn-danger">取消</button>  
        </div>
      </form> 
      </div>  

   </block>

